import Router from 'vue-router'
import routes from './router'
import store from '../store'


// 登陆页面路由 name

const router = new Router({ 
    routes, 
    scrollBehavior (to, from, savedPosition) {
        store.commit('setscrollTop', 0)
        return { x: 0, y: 0 }
    } 
});


export default router